package org.javaboy.circuitbreaker.service;

import org.javaboy.commons.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("provider")
public interface IUserService {
    @GetMapping("/user")
    User getUserById(@RequestParam("id") Integer id, @RequestHeader("token") String token);
}
